package com.cfuture08.component.dwz;

import com.cfuture08.util.xml.tag.XmlTag;
import com.cfuture08.util.xml.tag.XmlTagType;

public class LiTag {
	public LiTag() {
	}

	public LiTag(ATag dwza, UlTag dwzul) {
		this.a = dwza;
		this.ul = dwzul;
	}

	public ATag getA() {
		return a;
	}

	public void setA(ATag dwza) {
		this.a = dwza;
	}

	public UlTag getUl() {
		return ul;
	}

	public void setUl(UlTag dwzul) {
		this.ul = dwzul;
	}

	public String getXmlBean() {
		return xmlBean;
	}

	public void setXmlBean(String xmlBean) {
		this.xmlBean = xmlBean;
	}

	@XmlTag(canRead = true, canWrite = true, type = XmlTagType.classType, value = "com.cfuture08.component.dwz.ATag")
	private ATag a;
	@XmlTag(canRead = true, canWrite = true, type = XmlTagType.classType, value = "com.cfuture08.component.dwz.UlTag")
	private UlTag ul;
	@XmlTag(canRead = true, canWrite = true, type = XmlTagType.attriType, value = "com.cfuture08.component.dwz.LiTag")
	private String xmlBean;

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("<li>");
		if (this.a != null) {
			sb.append(this.a.toString());
		}
		if (this.ul != null) {
			sb.append(this.ul.toString());
		}
		sb.append("</li>");
		return sb.toString();
	}
}
